package com.klanpaia.sosneko3;

import org.andengine.engine.Engine;
import org.andengine.engine.camera.Camera;
import org.andengine.entity.scene.Scene;
import org.andengine.entity.scene.background.Background;
import org.andengine.ui.activity.BaseGameActivity;

public class CenasManager extends Scene {

	 private TipoDecena currentScene;
     private BaseGameActivity activity;
     private Engine engine;
     private Camera camera;

     
     
public enum TipoDecena
   {
	Logon,
	Titulo,
	GamePrincipal
   }


Scene cenaLogon, cenaTitulo, cenaGamePrincipal; 

  public void SceneManager(BaseGameActivity activity, Engine engine, Camera camera) {
	        this.activity = activity;
	        this.engine = engine;
	        this.camera = camera;
	 
	     }

  //Method loads all of the splash scene resources
    public void loadSplashSceneResources() {
     }
    
    //Method loads all of the resources for the game scenes
    public void loadGameSceneResources() {
       }

    
       //Method creates the Splash Scene
     public Scene criarLogon() {
		return null;
       }

       //Method creates all of the Game Scenes
       public void createGameScenes() {
    	   
    	   cenaGamePrincipal = new Scene();
    	   cenaGamePrincipal.setBackground(new Background(0.5555f, 0.1111f, 0.5555f));
    	   
    	   cenaLogon = new Scene();
    	   cenaLogon.setBackground(new Background(0.5555f, 0.1111f, 0.8888f));
    	   
    	  cenaTitulo = new Scene();
    	  cenaTitulo.setBackground(new Background(0.1111f, 0.5555f, 0.8888f));

       }

       //Method allows you to get the currently active scene
  
       public TipoDecena getCurrentScene() {

          return currentScene;

       }

       //Method allows you to set the currently active scene
       public Scene setCurrentScene(TipoDecena scene) {
    	 Scene principalCena = new Scene();
    	   
    	 switch (scene){
    	   	case Logon:
    	   		
    	   		principalCena = cenaLogon;
    	   		
    	   		break;
    	   	case Titulo:
    	   		principalCena = cenaTitulo;
    	   		break;
    	   	case GamePrincipal:
    	   		principalCena = cenaGamePrincipal;
    	   		break;
    	   }
    	   
    	   return principalCena;
       }


}
